package golf.stockdata.framework.batch.dataobject;

import java.io.Serializable;
import java.util.ArrayList;

import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;

public class JobData implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -1586423427750348232L;
	
	private ArrayList<String> dependencies = new ArrayList<String>();
	private ArrayList<JobStepData> jobSteps = new ArrayList<JobStepData>();
	private String cronexpression;
	private String name;
	
	@XmlElement(name = "dependency")
	@XmlElementWrapper(name = "dependencies")
	public ArrayList<String> getDependencies() {
		return dependencies;
	}
	public void setDependencies(ArrayList<String> dependencies) {
		this.dependencies = dependencies;
	}
	
	@XmlElement(name = "jobstep")
	@XmlElementWrapper(name = "jobsteps")
	public ArrayList<JobStepData> getJobStepData() {
		return jobSteps;
	}
	public void setJobStepData(ArrayList<JobStepData> jobSteps) {
		this.jobSteps = jobSteps;
	}
	
	@XmlAttribute(name = "cronexpression")
	public String getCronexpression() {
		return cronexpression;
	}
	public void setCronexpression(String cronexpression) {
		this.cronexpression = cronexpression;
	}
	@XmlAttribute(name = "name")
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	

}
